﻿using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using System;
using System.ComponentModel.DataAnnotations;

namespace NP.BPMReportPlatform.FrameOrder.Dto
{
    public class FrameOrderImportDto
    {
        /// <summary>
        /// 导入实体
        /// IsLabelingError：是否标注数据错误
        /// </summary>
        [ExcelImporter(IsLabelingError = true)]
        public class ImportInput
        {
            /// <summary>
            /// 工号
            /// </summary>
            [ImporterHeader(Name = "工号")]
            [Required(ErrorMessage = "工号不能为空")]
            public string WorkNumber { get; set; }

            /// <summary>
            /// 姓名
            /// </summary>
            [ImporterHeader(Name = "姓名")]
            [Required(ErrorMessage = "姓名不能为空")]
            public string UserName { get; set; }

            /// <summary>
            /// 外派开始日期
            /// </summary>
            [ImporterHeader(Name = "外派开始日期")]
            [Required(ErrorMessage = "外派开始日期不能为空")]
            public DateTime StartDate { get; set; }

            /// <summary>
            /// 外派结束日期
            /// </summary>
            [ImporterHeader(Name = "外派结束日期")]
            [Required(ErrorMessage = "外派结束日期不能为空")]
            public DateTime EndDate { get; set; }

            /// <summary>
            /// 固定津贴
            /// </summary>
            [ImporterHeader(Name = "固定津贴")]
            public string Gdjt { get; set; }

            /// <summary>
            /// 租房津贴
            /// </summary>
            [ImporterHeader(Name = "租房津贴")]
            public string Zfjt { get; set; }

            /// <summary>
            /// 探亲假次数
            /// </summary>
            [ImporterHeader(Name = "探亲假次数")]
            public string Tqjcs { get; set; }

            /// <summary>
            /// 一次性按家费
            /// </summary>
            [ImporterHeader(Name = "一次性按家费")]
            public string Ycxajf { get; set; }
        }
    }
}
